﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Read.aspx.cs" Inherits="Read" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>설치형UCC 프로젝트 - UCCLIGHT</title>
    <link href="Common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function SetThumbCandidates(str) {

            document.getElementById("<%= hdnFileName.ClientID%>").value = str;

            //alert(str);
            //alert(str);
            var retStr =  str.split('/');
            
            var hdnThumbList="";

            for (i = 1; i < 6; i++) {
            document.getElementById("img" + i).src = "http://<%=ServerURL %>/Upload/" + str + "_0" + i + ".jpg";
                
            if (hdnThumbList == "") {
            hdnThumbList = str + "_0" + i + ".jpg";
            }
            else {
            hdnThumbList += "/" + str + "_0" + i + ".jpg";
            }

            }
            document.getElementById("<%=hdnThumbList.ClientID %>").value = hdnThumbList;
            /*document.getElementById("selectPan").style.display = "block";
            document.getElementById("selectFile").style.display = "none";
            alert("대표 이미지를 선택해주세요."); */
        }
        function SetEncodingKind(idx) {
            document.getElementById("<%= hdnEncodingKind.ClientID%>").value = idx;
        }


    </script>
</head>
<body>
    <form id="form1" runat="server">
    <a href="http://ucclight.hoons.kr" target="_blank" ><img src="./img/ucclight.jpg" style="padding-left:10px" /></a>
    <div style="background-image: url(/img/blog/tbg.gif); background-repeat: repeat-x;
        border: solid 1px #CCCCCC; height: 100%; width: 600px; padding: 10px 10px 10px 10px;
        margin-top: 15px; margin-left: 10px;">
        <!--제목 글쓴이-->
        <div style="width: 500px; float: left; vertical-align: middle; height: 26px; padding-left: 5px;
            padding-top: 20px; padding-bottom: 10px;">
            제목 : <asp:Label ID="lblBoardTitle" runat="server" Font-Bold="True"></asp:Label>
        </div>
        <div style="width: 100px; float: left; vertical-align: middle; height: 26px; padding-top: 20px;
            padding-bottom: 10px">
        </div>
        <!--글 내용 & 작성자 정보-->
        <div style="width: 600px; clear: left;">
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
                width="500px" height="400px">
                <param name="source" value="ClientBin/UCCLightPlayer.xap" />
                <param name="onerror" value="onSilverlightError" />
                <param name="background" value="white" />
                <param name="minRuntimeVersion" value="2.0.30923.0" />
                <param name="autoUpgrade" value="true" />
                <a href="http://go.microsoft.com/fwlink/?LinkId=107362" style="text-decoration: none;">
                    <img src="http://www.hoons.kr/img/silverlight2.jpg" alt="Get Microsoft Silverlight"
                        style="border-style: none" />
                </a>
            </object>
            <div id="dvContent" style="overflow: auto; width: 580px; height: 100%; padding-top: 40px;
                padding-left: 10px; padding-bottom: 10px; padding-right: 10px">
                내용 : <%= lblContent %>
                <br />
                <div style="border-bottom: solid 1px #CCCCCC; height: 40px">
                </div>
                <br />
                <br />
                작성자: <asp:Label ID="lblUserNickName" runat="server"></asp:Label>
                <br />
                <br />
            </div>
            <div style="width: 400px; height: 26px;">
            </div>
            <!--MSDN 같이 보기 날짜 아이피-->
            <div style="width: 580px; background-color: #F5F5F5; height: 25px; padding-bottom: 5px;
                padding-left: 20px">
                <div style="width: 200px; padding-top: 8px; float: left; height: 25px">
                 인코딩 옵션: <asp:Label ID="lblEncodingOpt" runat="server"></asp:Label>
                 작성일: <asp:Label ID="lblDate" runat="server"></asp:Label>
                </div>
            </div>
        </div>
       <!-- &nbsp;<div style ="display:none;" id ="selectPan">
            <img src = "" id ="img1" alt="" width="160px" height="120px" /><input type ="radio" name ="thumbGroup" id = "rdoChk1" onclick="SetThumb(1)"; />
         &nbsp;
            <img src = "" id ="img2" alt="" width="160px" height="120px"/><input type ="radio" name ="thumbGroup" id = "rdoChk2" onclick="SetThumb(2)";/>
            &nbsp;
            <img src = "" id ="img3" alt="" width="160px" height="120px"/><input type ="radio" name ="thumbGroup" id = "rdoChk3" onclick="SetThumb(3)";/>
            &nbsp;
            <img src = "" id ="img4" alt="" width="160px" height="120px"/><input type ="radio" name ="thumbGroup" id = "rdoChk4" onclick="SetThumb(4)";/>
            &nbsp;
            <img src = "" id ="img5" alt="" width="160px" height="120px"/><input type ="radio" name ="thumbGroup" id = "rdoChk5" onclick="SetThumb(5)";/>
		</div>
    <br />
    <div  style="text-align:right;width:600px;"> 
        <asp:Button ID="btnThumInsert" runat="server" Text="썸네일 선택" 
            onclick="btnThumInsert_Click" />
        
    </div> -->
    <script type="text/javascript">
        function validate() {
            if (document.getElementById("rdoChk1").checked == false
            && document.getElementById("rdoChk2").checked == false
            && document.getElementById("rdoChk3").checked == false
            && document.getElementById("rdoChk4").checked == false
            && document.getElementById("rdoChk5").checked == false
        ) {
                    alert("대표 이미지를 선택해주세요.");
                    document.getElementById("rdoChk1").focus();
                    return false;
                } 
            else {

                return true;

            }
        }
</script>
        <input id="hdnFileName" type="hidden" runat="server" />
        <input id="hdnThumb" type="hidden" runat="server" />
        <input id="hdnThumbList" type="hidden" runat="server" />
        <input id="hdnStatus" type="hidden" runat="server"/>
        <input id="hdnEncodingKind" type="hidden" runat="server"/>
    </form>
</body>
</html>
